import App from './App'
import Vue from 'vue'

Vue.config.productionTip = false
Vue.prototype.BaseFileURL = 'http://ts.lagou.uieee.com/api/v2/files/'
// 引入uview-ui
import uView from 'uview-ui';
Vue.use(uView);

// 引入公共组件 uni-nav-bar
import myNavBar from 'components/my-nav-bar.vue'
Vue.component('my-nav-bar',myNavBar)
// 注册公共组件 动态发布
import login from 'components/login.vue'
Vue.component('login',login)
Vue.config.productionTip = false

import gotoShare from 'components/gotoShare.vue'
Vue.component('goto-share',gotoShare)

import store from '@/store/index.js'
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})

import httpInterceptor from '@/config/http.interceptor.js'
// 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
Vue.use(httpInterceptor, app)

// http接口API集中管理引入部分
import httpApi from '@/config/http.api.js'
Vue.use(httpApi, app)


app.$mount()





// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() { 
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
